 /* 背景渐变的动画 */
 @keyframes change {

    0%,
    100% {
        background-position: 0%, 50%;
    }

    50% {
        background-position: 100%, 50%;
    }
}

/* 设置背景样式 */
body {
    background-image: linear-gradient(125deg, rgb(214, 145, 157), #7e3a7b, #7558a6, #85347f, #4c3485, red);
    background-size: 400%;
    background-repeat: no-repeat;
    animation: change 10s infinite alternate-reverse;
}

/* 登录页面 */
.page-wrapper {
    width: 300px;
    height: 500px;
    box-shadow: 10px;
    margin: 10% auto;
    position: relative;
    border-radius: 10px;
}

/* 登录/切换 按钮 */
.change {
    cursor: pointer;
    position: absolute;
    bottom: 5px;
    left: 50px;
    width: 200px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    background-color: pink;
    border-radius: 10px;
    transition: all 0.4s;
}

/* 旋转体，包含正反面 */
.over {
    position: relative;
    text-align: center;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: all 1.6s ease;
}
/* 变化按钮点击时实现翻转 */
#choose:checked~.over {
    transform: rotateY(180deg);
}
/* 对输入框进行样式设计 */
input {
    box-sizing: border-box;
    padding: 0 10px;
    width: 70%;
    height: 50px;
    background-color: pink;
    border-radius: 10px;
    border: none;
    outline: none;
    transition: all 0.4s;
}
/* 光标移动到输入框上时浮现效果 */
input:hover,
label:hover {
    box-shadow: 0px 0px 20px pink;
}
/* 对正反面样式进行设计 */
.form {
    width: 300px;
    height: 400px;
    border-radius: 10px;
    background-color: rgb(117 134 176 / 60%);
    box-shadow: 0 0px 10px rgb(117 134 176 / 60%);
    position: absolute;
}
/* 边框流光效果 */
@keyframes borderchange {
    0% {
        clip: rect(0px, 310px, 2px, 0px);
    }

    12.5% {
        clip: rect(0px, 2px, 2px, 0px);
    }

    25% {
        clip: rect(0px, 2px, 410px, 0px);
    }

    37.5% {
        clip: rect(408px, 2px, 410px, 0px);
    }

    50% {
        clip: rect(408px, 310px, 410px, 0px);
    }

    62.5% {
        clip: rect(408px, 310px, 410px, 308px)
    }

    75% {
        clip: rect(0px, 310px, 410px, 308px);
    }

    87.5% {
        clip: rect(0px, 310px, 2px, 308px);
    }

    100% {
        clip: rect(0px, 310px, 2px, 0px);
    }
}
/* 通过伪类设置边框实现边框流光 */
.form::before,
.form::after {
    z-index: -1;
    content: "";
    border: 2px solid pink;
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    margin: -5px;
    animation: borderchange 4s infinite linear;
    border-radius: 10px;
}

.form::after {
    animation: borderchange 4s 2s infinite linear;
}
/* 对输入框下的提示信息进行样式设计 */
input+p {
    border-radius: 5px;
    margin: 10px auto 20px;
    width: 70%;
    background-color: pink;
    text-align: start;
}

.login h1 {
    margin-bottom: 30px;
}

.login input {
    margin-bottom: 10px;
}

.regist input {
    height: 30px;
}

.regist {
    transform: rotateY(180deg);
}